package com.ming.luckyDemo.service;

import com.ming.luckyDemo.pojo.DO.BetBillDO;
import com.ming.luckyDemo.pojo.DO.UserInfoDO;
import com.ming.luckyDemo.pojo.entity.ResultBody;
import org.springframework.web.bind.annotation.RequestParam;


public interface BetBillService {

    /**
     * 根据cookie获取对应用户名
     * @param cookieName
     * @return
     */
    UserInfoDO getCookie(@RequestParam String cookieName);

    /**
     * 比较余额是否大于投注单，并更新余额
     * @param betBillDO
     * @return
     */
    boolean selectBalance(BetBillDO betBillDO);

    /**
     * 保存下注明细
     * @param betBillDO
     * @return
     */
    ResultBody saveBet(BetBillDO betBillDO);



}
